package com.ujson.chat.server.auth;

import com.ujson.base.common.dto.Res;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <h3>ujson-parent</h3>
 * <p>登录服务</p>
 *
 * @author JerryLiu  a1031757312@gmail.com
 * @version 1.0
 * @date 2021-11-26 16:45
 */
@Component
@FeignClient(value = "uaa-provider", path = "/uaa")
public interface UserService {

    @PostMapping(value = "/login")
    @ResponseBody
    Res<Object> login(@RequestParam("username") String username, @RequestParam("password") String password);

}
